﻿@using DataMongo
@model IEnumerable<DataMongo.Entities.Country>
@{
    ViewBag.Title = "Country";
}

<div class="row">
    <div class="col-lg-12">
        <h2>Country List</h2>
        <p>@Html.ActionLink("Create", "Countryadd", "SuperAdmin", "", new { @class = "btn btn-info" })</p>
        <div class="table-responsive">
            <table class="table table-bordered table-hover table-striped tablesorter">
                <thead>
                    <tr>
                        <th>Title <i class="fa fa-sort"></i></th>
                        <th>Description <i class="fa fa-sort"></i></th>
                        <th>IsActive <i class="fa fa-sort"></i></th>
                       
                        <th width="15%">

                        </th>
                    </tr>
                </thead>
                <tbody>
                    @foreach (var item in Model)
                    {
                        <tr>
                            <td>@item.Title</td>
                            <td>@item.Description</td>
                           
                            <td>
                                @if (item.isActive)
                                {
                                    <input type="checkbox" disabled="disabled" checked="checked" />
                                }
                                else
                                {
                                    <input type="checkbox" disabled="disabled" checked="checked" />
                                }

                            </td>
                           
                            <td>
                                @Html.ActionLink("Edit", "CountryEdit", new { id = item.CountryID }) |
                                @Html.ActionLink("Delete", "CountryDelete", new { id = item.CountryID })
                            </td>
                        </tr>
                    }
                </tbody>
            </table>
        </div>
    </div>
</div>

